﻿<cfsilent>
	<cfscript>
		
		datetimeAdvice = getProperty("serviceFactory").getBean("datetimeAdvice");
		propertyAdvice = getProperty("serviceFactory").getBean("studentPropertyAdvice");
		dictAdvice = getProperty("serviceFactory").getBean("senateDictionaryAdvice");
		
		event.setArg("pageTitle", "教学运行基础数据 - 学生学籍管理 - 双学位");
		
		currentTab = event.getArg("TabID", "labHistory");
		
		/* 目标班级信息 */
		studentId = event.getArg("STU");
		instituteId = event.getArg("DEP");
		subjectId = event.getArg("SBJ");
		grade = event.getArg("GRD", year(now()) - 1);
		
		subjectDirId = 0;


		/* 学生信息 */
		
		sql = "SELECT a.stu_id,
					   a.stu_name,
					   b.grade,
					   c.sbj_name 
				FROM t_student a 
					 INNER JOIN t_class b ON b.cls_id = a.cls_id 
					 INNER JOIN t_subject c ON c.sbj_id = b.sbj_id  
				WHERE a.stu_id = :studentId ";
		
		queryObj = new query( datasource=application.dnsSlave);
		queryObj.addParam( name="studentId", value=studentId, cfsqltype="cf_sql_varchar" );
		
		rs_student = queryObj.execute( sql=sql ).getResult();
		
		/* 双学位专业信息 */
	
		sql = "SELECT a.sbj_name 
				FROM t_subject a 
				WHERE a.sbj_id = :sbjId ";
				
		queryObj = new query( datasource=application.dnsSlave);
		queryObj.addParam( name="sbjId", value=left(subjectId, 5), cfsqltype="cf_sql_varchar" );
		
		rs_subject = queryObj.execute( sql=sql ).getResult();
		
		rs_direction = queryNew("sbj_short");
		
		/* 双学位专业方向 */
		if ( len(subjectId) eq 6 ) {
			
			subjectDirId = right(subjectId,1);
		
			sql = "SELECT a.sbj_short 
					FROM t_subject a 
					WHERE a.sbj_id = :subjectId ";
					
			queryObj = new query( datasource=application.dnsSlave);
			queryObj.addParam( name="subjectId", value=subjectId, cfsqltype="cf_sql_varchar" );
			
			rs_direction = queryObj.execute( sql=sql ).getResult();
		}
		
		passArgs = structNew();
							
		sql = "SELECT 
					b.stu_id, 
					b.stu_name, 
					c.sbj_name sbj_name1, 
					d.sbj_name sbj_name2, 
					d.sbj_id, 
					a.sbj_direction, 
					a.grade, 
					a.reviewed, 
					a.stusec_id
				FROM 
					t_student_secdegree a 
					INNER JOIN t_student b ON b.stu_id = a.stu_id  
					INNER JOIN t_class ON t_class.cls_id = b.cls_id 
					INNER JOIN t_subject c ON c.sbj_id = t_class.sbj_id 
					INNER JOIN t_subject d ON d.sbj_id = a.sbj_id 
				WHERE 
					a.stat = '1'
				ORDER BY a.reviewed";
				
		queryObj = new query( datasource=application.dnsSlave);
		
		rs_historySecondDegree = queryObj.execute( sql=sql ).getResult();
					
		sql = "SELECT 
					b.stu_id, 
					b.stu_name, 
					c.sbj_name sbj_name1, 
					d.sbj_name sbj_name2, 
					d.sbj_id, 
					a.sbj_direction, 
					a.grade, 
					a.reviewed, 
					a.stusec_id
				FROM 
					t_student_secdegree a 
					INNER JOIN t_student b ON b.stu_id = a.stu_id  
					INNER JOIN t_class ON t_class.cls_id = b.cls_id 
					INNER JOIN t_subject c ON c.sbj_id = t_class.sbj_id 
					INNER JOIN t_subject d ON d.sbj_id = a.sbj_id 
				WHERE 
					a.stat = '0'
				ORDER BY a.reviewed";
				
		queryObj = new query( datasource=application.dnsSlave);
		
		rs_disableSecondDegreeStudent = queryObj.execute( sql=sql ).getResult();
		
		/* 搜索学生档案 */
		keyword = event.getArg("Keywords");
		
		//studentArray = [];
		rs_studentCon = queryNew("stu_id");
		
		if ( len(keyword) ) {
			
			sql = "SELECT 
						s.stu_id, 
						s.stu_name, 
						a.cls_name, 
						b.student_prop 
					FROM t_student s
						 INNER JOIN t_class a ON a.cls_id = s.cls_id 
						 INNER JOIN t_student_status b ON b.stu_id = s.stu_id
					WHERE 
						(
							s.stu_id LIKE :condition 
							OR 
							s.stu_name LIKE :condition 
						)
						AND
						NOT EXISTS (
							SELECT 
								d.stu_id
								FROM
									t_student_secdegree d
								WHERE 
									d.stu_id =s.stu_id
						)
					ORDER BY s.stu_name";
					
			queryObj = new query( datasource=application.dnsSlave,maxRows = 60);
			queryObj.addParam( name="condition", value=keyword&"%" , cfsqltype="cf_sql_varchar" );
			
			rs_studentCon= queryObj.execute( sql=sql ).getResult();
		}
		
		if(len(studentId)) {
			
			currentTab = event.getArg("TabID", "labDepartment");
			
			/* 开设双学位专业的学院列表 */
					
			sql = "SELECT 
					b.institute_id, 
					b.institute_name
					FROM t_schema p 
					   INNER JOIN t_subject a ON a.sbj_id = p.sbj_id 
					   INNER JOIN t_institute b ON b.institute_id = a.institute_id 
					WHERE
						SUBSTR(p.shm_prop,2,1)  = '1'
					GROUP BY 
						b.institute_id, 
						b.institute_name, 
						b.institute_english   
					ORDER BY 
						b.institute_name";
				
			queryObj = new query( datasource=application.dnsSlave);
			
			rs_ins= queryObj.execute( sql=sql ).getResult();
		}
		
		if ( len(instituteId) ) {
			
			currentTab = event.getArg("TabID", "labSubject");
			
			/* 根据学院 读取招生年级 */
			
			sql = "SELECT 
						distinct p.grade
					FROM t_schema p
						 INNER JOIN t_subject a ON a.sbj_id = p.sbj_id 
						 INNER JOIN t_institute b ON b.institute_id = a.institute_id 
					WHERE
						b.institute_id = :instituteId 
						AND 
						SUBSTR(p.shm_prop,2,1)  = '1'
					ORDER BY 
						p.grade DESC";
						
			queryObj = new query( datasource=application.dnsSlave,maxRows = 5);
			queryObj.addParam( name="instituteId", value=instituteId, cfsqltype="cf_sql_varchar" );
			
			rs_grade= queryObj.execute( sql=sql ).getResult();
			
			grade = event.getArg("GRD", rs_student.grade );

			/* 根据学院和年级 读取专业开设信息 */
		
			sql = "SELECT 
						a.sbj_id, 
						a.sbj_name, 
						a.term_start, 
						a.level_code, 
						b.learning_branch
						FROM t_schema p 
						 INNER JOIN t_subject a ON a.sbj_id = p.sbj_id
						 INNER JOIN t_learning_branch b ON b.b_id = a.b_id 
					WHERE 
						a.institute_id = :instituteId 
						AND 
						p.grade = :grade 
					  AND
						SUBSTR(p.shm_prop,2,1)  = '1'
					GROUP BY 
						a.sbj_id, 
						a.sbj_name, 
						a.term_start, 
						a.level_code, 
						b.learning_branch
					ORDER BY a.sbj_name";
					
			queryObj = new query( datasource=application.dnsSlave);
			queryObj.addParam( name="instituteId", value=instituteId, cfsqltype="cf_sql_varchar" );
			queryObj.addParam( name="grade", value=grade, cfsqltype="cf_sql_char" );
			
			rs_subjectSch= queryObj.execute( sql=sql ).getResult();
											
		}
		
		if ( len(subjectId) ) {
			
			currentTab = event.getArg("TabID", "labAddSecondDegree");
			
		}
		
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
		
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('studentProfile')#</cfoutput>"><i class="mrs img btnList"></i><span class="uiButtonText">学籍档案</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 application"></i>修读双学位资格
				</h2>
			</div>
		</div>
	</div>
</div>
<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				
				<div class="UItab">
					<div class="tabLables">
						<span <cfif currentTab eq "labHistory">class="active"</cfif> id="labHistory" tabTarget="History">双学位学生名单</span>
						<span <cfif currentTab eq "labSearch">class="active"</cfif> id="labSearch" tabTarget="Search">新增双学位学生</span>
						<span <cfif currentTab eq "labOpenSecondDegree">class="active"</cfif> id="labOpenSecondDegree" tabTarget="OpenSecondDegree">恢复学生双学位资格</span>
						<cfif len(studentId)>
							<span <cfif currentTab eq "labDepartment">class="active"</cfif> id="labDepartment" tabTarget="Department">选择双学位学院</span>
						</cfif>
						<cfif len(instituteId)>
							<span <cfif currentTab eq "labSubject">class="active"</cfif> id="labSubject" tabTarget="Subject">选择双学位专业</span>
						</cfif>
						<cfif len(subjectId)>
							<span <cfif currentTab eq "labAddSecondDegree">class="active"</cfif> id="labAddSecondDegree" tabTarget="AddSecondDegree">双学位选课授权设置</span>
						</cfif>
					</div>
				</div>
				<script language="javascript" type="text/javascript">
					//<![CDATA[
					<!--
					$(document).ready(function() {
						
						/* init Tab */
						$("div.tabContent").hide();
						$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
						$("div.tabLables > span").click(function(){
							var $targetID = $(this).attr("tabTarget");
							
							$("div.tabLables span").removeClass("active");
							$(this).addClass("active");
							
							$("div.tabContent").not('[id="' + $targetID + '"]').hide();
							$("div.tabContent#" + $targetID).show();
						});
						
					});
					// -->
					//]]>
				</script>
				
				<div id="History" class="tabContent">
				
					<div class="noticeBlock">
						<div class="operation">
							<a class="uiButton uiButtonSpecial" href="<cfoutput>#buildURL('studentSecondDegreeDownloadExcel', passArgs)#</cfoutput>"><i class="mrs img btnDownload"></i><span class="uiButtonText">下载本校学生双学位学生名单</span></a>
						</div>
						<h3>本校学生双学位学生名单</h3>
						<hr/>
					</div>
				
					<cfif rs_historySecondDegree.recordCount>
					
						<cfset row = 0 />
						<table class="UIEditable">
							<thead>
								<tr>
									<td width="20"></td>
									<td >学号</td>
									<td >姓名</td>
									<td >主修专业</td>
									<td >双学位专业</td>
									<td >双学位方向</td>
									<td >双学位年级</td>
									<td >审批时间</td>
									<td ></td>
									<td ></td>
									<td ></td>
								</tr>
							</thead>
							<tbody>
                            <cfloop query="rs_historySecondDegree" >

								<cfset row ++ />
                                <cfset sql = "SELECT a.sbj_short 
												FROM t_subject a 
												WHERE a.sbj_id = :sbjId "/>
                                                
                                <cfset queryObj = new query( datasource=application.dnsSlave)/>
                                <cfset queryObj.addParam( name="sbjId", value=rs_historySecondDegree.sbj_id & rs_historySecondDegree.sbj_direction, cfsqltype="cf_sql_varchar" )/>
                                
                                <cfset rs_subjectDirection= queryObj.execute( sql=sql ).getResult()/>
								
								<cfset structInsert(passArgs, "STU", rs_historySecondDegree.stu_id, true) />
								<cfset structInsert(passArgs, "STUGRT", rs_historySecondDegree.stusec_id, true) />
								
								<tr class="editRows">
								    <td class="index"><cfoutput>#row#</cfoutput></td>
									<td><span class="numeric"><cfoutput>#rs_historySecondDegree.stu_id#</cfoutput></span></td>
									<td><cfoutput>#rs_historySecondDegree.stu_name#</cfoutput></td>
									<td><cfoutput>#rs_historySecondDegree.sbj_name1#</cfoutput></td>
									<td><cfoutput>#rs_historySecondDegree.sbj_name2#</cfoutput></td>
									<td><cfif rs_subjectDirection.recordCount EQ 0>无<cfelse><cfoutput>#rs_subjectDirection.sbj_short#</cfoutput></cfif></td>
									<td><span class="numeric"><cfoutput>#rs_historySecondDegree.grade#</cfoutput></span></td>
									<td><span class="numeric"><cfoutput>#datetimeAdvice.formatDateString(rs_historySecondDegree.reviewed, 'YYYY/MM/DD')#</cfoutput></span></td>
									<td><a title="查看学籍资料" href="<cfoutput>#buildURL('studentProfileView', passArgs)#</cfoutput>" class="stat details" ></a></td>
									<td><a title="终止修读资格" href="<cfoutput>#buildURL('stopStudentSecondDegreeDo', passArgs)#</cfoutput>" class="stat running"></a></td>
									<td><a title="取消修读资格" href="<cfoutput>#buildURL('clearStudentSecondDegreeDo', passArgs)#</cfoutput>" class="stat clear"></a></td>
								</tr>
							</cfloop>
						    </tbody>
						</table>
						<cfelse>
							<div class="systemNotice">
								<p>目前没有双学位学生记录</p>
							</div>
					 </cfif>
				</div>
				
				<div id="Search" class="tabContent">
					
					<form id="formSearch" onSubmit="javascript:return processVerfiyForm('formSearch');" class="formWrapper Transparent" method="post" action="<cfoutput>#buildURL('studentSecondDegree')#</cfoutput>">
						<input type="hidden" name="TabID" value="labSearch" />
						
						<div class="label">
							<b>学号或姓名</b>
							<input name="Keywords" id="Keywords" type="text" class="typeText" verification="required" maxlength="128" value="<cfoutput>#event.getArg('Keywords')#</cfoutput>" />
						</div>
						<hr/>
						<div class="lable">
							<input class="button1" type="submit" value="搜索" />
						</div>
					</form>
					
					<cfif rs_studentCon.recordCount>

						<div class="clearfix">
							<div class="UICardTable">
                                <cfloop query="rs_studentCon" >
									
									<cfset structInsert(passArgs, "STU", rs_studentCon.stu_id, true) />
									<cfset propertyAdvice.parseProperty(rs_studentCon.student_prop) />
									
									<dl <cfif not propertyAdvice.getInSchool()>class="disabled"</cfif>>
										<dt>
											<a href="<cfoutput>#buildURL('studentSecondDegree', passArgs)#</cfoutput>">
												<em class="people"><!--imgholder--></em>
												<dd>
													<h3><cfoutput>#rs_studentCon.stu_name#</cfoutput> - <cfoutput>#rs_studentCon.cls_name#</cfoutput></h3>
													<p><cfoutput>#rs_studentCon.stu_id#</cfoutput></p>
												</dd>
											</a>
										</dt>
									</dl>
								</cfloop>					
							</div>
						</div>
						<cfelse>
							<cfif len(keyword)>
								<div class="systemNotice">
									<p>没有搜索到该学生记录或该学生已授予双学位</p>
								</div>
							</cfif>
					</cfif>
					
				</div>
				<div id="OpenSecondDegree" class="tabContent">
				
					<div class="noticeBlock">
						<h3>恢复学生双学位资格</h3>
						<hr/>
					</div>
				
					<cfif rs_disableSecondDegreeStudent.recordCount>
					
						<cfset row = 0 />
						<table class="UIEditable">
							<thead>
								<tr>
									<td width="20"></td>
									<td >学号</td>
									<td >姓名</td>
									<td >主修专业</td>
									<td >双学位专业</td>
									<td >双学位方向</td>
									<td >双学位年级</td>
									<td >审批时间</td>
									<td ></td>
									<td ></td>
								</tr>
							</thead>
							<tbody>
                            <cfloop query="rs_disableSecondDegreeStudent" >

								<cfset row ++ />
                                <cfset sql = "SELECT a.sbj_short 
												FROM t_subject a 
												WHERE a.sbj_id = :sbjId "/>
                                                
                                <cfset queryObj = new query( datasource=application.dnsSlave)/>
                                <cfset queryObj.addParam( name="sbjId", value=rs_disableSecondDegreeStudent.sbj_id & rs_disableSecondDegreeStudent.sbj_direction, cfsqltype="cf_sql_varchar" )/>
                                
                                <cfset rs_subjectDir= queryObj.execute( sql=sql ).getResult()/>
								
								<cfset structInsert(passArgs, "STU", rs_disableSecondDegreeStudent.stu_id, true) />
								<cfset structInsert(passArgs, "STUGRT", rs_disableSecondDegreeStudent.stusec_id, true) />
								
								<tr class="editRows">
								    <td class="index"><cfoutput>#row#</cfoutput></td>
									<td><span class="numeric"><cfoutput>#rs_disableSecondDegreeStudent.stu_id#</cfoutput></span></td>
									<td><cfoutput>#rs_disableSecondDegreeStudent.stu_name#</cfoutput></td>
									<td><cfoutput>#rs_disableSecondDegreeStudent.sbj_name1#</cfoutput></td>
									<td><cfoutput>#rs_disableSecondDegreeStudent.sbj_name2#</cfoutput></td>
									<td><cfif rs_subjectDir.recordCount EQ 0>无<cfelse><cfoutput>#rs_subjectDir.sbj_short#</cfoutput></cfif></td>
									<td><span class="numeric"><cfoutput>#rs_disableSecondDegreeStudent.grade#</cfoutput></span></td>
									<td><span class="numeric"><cfoutput>#datetimeAdvice.formatDateString(rs_disableSecondDegreeStudent.reviewed, 'YYYY/MM/DD')#</cfoutput></span></td>
									<td><a title="查看学籍资料" href="<cfoutput>#buildURL('studentProfileView', passArgs)#</cfoutput>" class="stat details" ></a></td>
									<td><a title="恢复修读资格" href="<cfoutput>#buildURL('openStudentSecondDegreeDo', passArgs)#</cfoutput>" class="stat stop"></a></td>
								</tr>
							</cfloop>
						    </tbody>
						</table>
						<cfelse>
							<div class="systemNotice">
								<p>目前没有终止双学位学生记录</p>
							</div>
					 </cfif>
				</div>
				<cfif len(studentId)>
				
					<div id="Department" class="tabContent">
					
						<div class="noticeBlock">
							<h3>选择开设双学位专业的学院</h3>
							<hr/>
						</div>
				
						<div class="clearfix">
							<div class="UICardTable">
                                <cfloop query="rs_ins" >
									<cfset structInsert(passArgs, "DEP", rs_ins.institute_id, true) />
									<cfset structInsert(passArgs, "STU", studentId, true) />
									<dl <cfif len(instituteId) and instituteId neq rs_ins.institute_id>class="disabled"</cfif>>
										<dt>
											<a href="<cfoutput>#buildURL('studentSecondDegree', passArgs)#</cfoutput>">
												<b class="school"><!--imgholder--></b>
												<dd>
													<h3><cfoutput>#rs_ins.institute_name#</cfoutput></h3>
												</dd>
											</a>
										</dt>
									</dl>
								</cfloop>
								<!--- 将部门代码回滚为默认值 --->
								<cfif len(instituteId)>
									<cfset structInsert(passArgs, "STU", studentId, true) />
									<cfset structInsert(passArgs, "DEP", instituteId, true) />
								</cfif>
							</div>
						</div>
					
					</div>
					
				</cfif>
				
				<cfif len(instituteId)>
				
					<div id="Subject" class="tabContent">
					
						<div class="noticeBlock">
							<div class="operation">
                                <cfloop query="rs_grade" >
									<cfset structInsert(passArgs, "GRD", rs_grade.grade, true) />
									<cfset structInsert(passArgs, "STU", studentId, true) />
									<a class="uiButton <cfif rs_grade.grade eq grade>uiButtonSpecial</cfif>" href="<cfoutput>#buildURL('studentSecondDegree', passArgs)#</cfoutput>"><span class="uiButtonText"><cfoutput>#rs_grade.grade#</cfoutput> 级</span></a>
								</cfloop>
								<!--- 将年级回滚为默认值 --->
								<cfset structInsert(passArgs, "STU", studentId, true) />
								<cfset structInsert(passArgs, "GRD", grade, true) />
							</div>
							<h3>选择双学位的年级和专业</h3>
							<hr/>
						</div>
					
						<cfif rs_subjectSch.recordCount>
								
								<div class="clearfix">
									<div class="UICardTable">
                                        <cfloop query="rs_subjectSch" >
											<cfset structInsert(passArgs, "SBJ", rs_subjectSch.sbj_id, true) />
											<cfset structInsert(passArgs, "STU", studentId, true) />
											<dl <cfif len(subjectId) and subjectId neq rs_subjectSch.sbj_id>class="disabled"</cfif>>
												<dt>
													<a href="<cfoutput>#buildURL('studentSecondDegree', passArgs)#</cfoutput>">
														<em class="subject"><!--imgholder--></em>
														<dd>
															<h3><cfoutput>#rs_subjectSch.sbj_name#</cfoutput></h3>
															<div><cfoutput>#dictAdvice.getTermEnrol(rs_subjectSch.term_start)#-#dictAdvice.getStudentLevel(rs_subjectSch.level_code)#(#rs_subjectSch.learning_branch#)</cfoutput></div>
														</dd>
													</a>
												</dt>
											</dl>
										</cfloop>
										<!--- 将专业回滚为默认值 --->
										<cfset structInsert(passArgs, "STU", studentId, true) />
										<cfset structInsert(passArgs, "SBJ", subjectId, true) />
									</div>
								</div>
								
							<cfelse>
								
								<div class="systemNotice">
									<p>该学院在指定年级没有双学位专业</p>
								</div>
								
						</cfif>
					
					</div>
				
				</cfif>
				
				<cfif len(subjectId)>
				
					<div id="AddSecondDegree" class="tabContent">
						
						<div class="noticeBlock">
							<h3>双学位专业信息</h3>
							<hr>
						</div>
						
						<table class="UItable withBorder">
							<tbody>
								<tr>
									<td>学号</td>
									<td><span class="number"><cfoutput>#rs_student.stu_id#</cfoutput></span></td>
									<td>姓名</td>
									<td><cfoutput>#rs_student.stu_name#</cfoutput></td>
									<td>主修专业</td>
									<td><cfoutput>#rs_student.sbj_name#</cfoutput></td>
								</tr>
								<tr>
									<td>双学位专业</td>
									<td><cfoutput>#rs_subject.sbj_name#</cfoutput></td>
									<td>年级</td>
									<td><span class="number"><cfoutput>#grade#</cfoutput></span></td>
									<td>双学位方向</td>
									<td>
										<cfif rs_direction.recordCount EQ 0>
											无
											<cfelse>
											<cfoutput>#rs_direction.sbj_short#</cfoutput>
										</cfif>
									</td>
								</tr>
							</tbody>
						</table>
						
						<div class="noticeBlock">
							<h3>双学位选课授权</h3>
							<hr>
						</div>
						
						<form id="formSign" onsubmit="javascript:return processVerfiyForm('formSign');" class="formWrapper Transparent" method="post" action="index.cfm?event=studentStatusManager:studentSecondDegreeAddDo">
	
							<input type="hidden" name="Grade" value="<cfoutput>#grade#</cfoutput>" />
							<input type="hidden" name="SubjectDirection" value="<cfoutput>#subjectDirId#</cfoutput>" />
							<input type="hidden" name="Credit" value="0" />
							<input type="hidden" name="CurrentStat" value="1" />
							<input type="hidden" name="subjectId" value="<cfoutput>#left(subjectId, 5)#</cfoutput>" />
							<input type="hidden" name="studentId" value="<cfoutput>#studentId#</cfoutput>" />
					
							<div class="label">
								<b>学生申请日期</b>
								<input name="TimeSignedUp" id="TimeSignedUp" type="text" class="typeDate" verification="date" maxlength="10" value="<cfoutput>#dateFormat(now(), 'YYYY-MM-DD')#</cfoutput>" /><span id="signedUpTrigger" class="btnCalendar"></span>
							</div>
												
							<div class="label">
								<b>审批日期</b>
								<input name="TimeReviewed" id="TimeReviewed" type="text" class="typeDate" verification="date" maxlength="10" value="<cfoutput>#dateFormat(now(), 'YYYY-MM-DD')#</cfoutput>" /><span id="reviewedTrigger" class="btnCalendar"></span>
							</div>
							
							<hr/>
							
							<div class="lable">
								<input class="button" type="submit" value="授权" />
							</div> 
							
						</form>
					
						<script language="javascript" type="text/javascript">
							//<![CDATA[
							<!--
							$(document).ready(function() {
						
								$("#TimeSignedUp").mask("9999-99-99");
								$("#TimeReviewed").mask("9999-99-99");
								
								Calendar.setup({
										trigger    : "signedUpTrigger",
										inputField : "TimeSignedUp",
										animation  : false
										}); 
								
								Calendar.setup({
										trigger    : "reviewedTrigger",
										inputField : "TimeReviewed",
										animation  : false
										}); 
									
							});
							// -->
							//]]>
						</script>
						
					</div>
				
				</cfif>
				
			</div>
		</li>
	</ul>
</div>